package com.jy.service.impl;

import com.jy.entity.Building;
import com.jy.mapper.BuildingMapper;
import com.jy.service.IBuildingService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author Null
 * @since 2022-11-14
 */
@Service
public class BuildingServiceImpl extends ServiceImpl<BuildingMapper, Building> implements IBuildingService {

    @Resource
    private BuildingMapper buildingMapper;

    @Override
    public List<Building> allBuilding() {
        return buildingMapper.allBuilding();
    }
}
